using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TONLI.TJOA.Common;

namespace TONLI.TJOA.Anquan
{
    public partial class AQK_XXCKHBZ_R : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e) {
            string s = Server.UrlDecode(this.Request["title"]);
            ObjectDataSource1.Select();
            ASPxGridViewExporter1.WriteXlsToResponse(Server.UrlEncode(string.IsNullOrEmpty(s)?ASPxGridView1.SettingsText.Title:s));
            //Response.End();
        }
        public static IList getList() {
            return DataService.BaseService().GetList("SelectTJOA_AQK_XXCKHBZListByWhere", StrWhere);
        }
        public static string StrWhere {
            get { return HttpContext.Current.Session["TJOA_AQK_XXCKHBZ_Parentid"] == null ? "1=1 order by index_" : HttpContext.Current.Session["TJOA_AQK_XXCKHBZ_Parentid"].ToString(); }
        }
    }
}
